home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Programming
/
PPCSmallTalk
/
examples
/
file.st
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1986-10-19
|
335 b
|
17 lines
Class Main
[
main | f g |
f <- File new ; open: 'file.st'.
g <- File new ; open: 'foo' for: 'w'.
f do: [:x | g write: x reversed].
g <- File new ; open: 'foo' for: 'r'.
g do: [:x | x print].
f modeCharacter.
f first print.
10 timesRepeat: [ f next print ].
(f at: 2) print.
f currentKey print.
f size print.
]